//
//  LgImageColorModel.h
//  InfiniteLoop
//
//  Created by HJY on 2018/12/14.
//  Copyright © 2018年 LG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^LGImageDownloadCompleted)(UIColor*);

@interface LgImageColorModel : NSObject

@property (strong, nonatomic) NSString *imageName;
@property (strong, nonatomic) NSString *imageURLString;
@property (strong, nonatomic) UIColor *imageColor;
@property (strong, nonatomic) UIImage *downloadImage;

/// 如果是网络图片 图片不存在  就调用此方法下载图片 并返回颜色值
-(UIColor*)downloadNetworkImage;

// 如果是本地图片  imageColor没有值时  调用此方法获取颜色值
-(UIColor*)getImageColor;

@end

NS_ASSUME_NONNULL_END
